﻿using MengLin.OOP.DesignPattern.BridgePattern.MultiPlatformMFormatLog.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.BridgePattern.MultiPlatformMFormatLog.Implements.Log
{
    /// <summary>
    /// 数据库日志
    /// </summary>
    public class DatabaseLog : AbstractLog
    {
        /// <summary>
        /// 写日志
        /// </summary>
        public override void Write(string log)
        {
            Console.WriteLine($"{nameof(DatabaseLog)} Write");
            IPlatform.Execute();
        }

        /// <summary>
        /// 读日志
        /// </summary>
        public override void Read()
        {
            Console.WriteLine($"{nameof(DatabaseLog)} Read");
            IPlatform.Execute();
        }
    }
}
